home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
comm
/
ums
/
UMS11_9_beta.lha
/
UMS
/
Bin
/
umscopy
< prev
next >
Wrap
AmigaDOS Script File
|
1999-03-14
|
619b
|
32 lines
.key FILE/A,MSGID/A,UMSNAME/A,RESULTVAR/A
.bra {
.ket }
; $Id: umscopy,v 1.2 1999/03/14 09:18:45 andre Exp $
failat 10
set destdir `getenv umsfiles.{UMSNAME}`
if not `echo len 1 $destdir` eq :
if not `echo len 1 $destdir` eq /
set destdir $destdir/
endif
endif
set newfile `list "{FILE}" quick lformat "$destdir%n"`
if exists "$newfile"
set i 1
lab loop
if exists "$newfile.$i"
set i `eval $i + 1`
skip loop back
endif
set newfile "$newfile.$i"
endif
echo "copying *"{FILE}*" to *"$newfile*" .."
copy "{FILE}" "$newfile" clone
filenote "$newfile" "{MSGID}"
setenv {RESULTVAR} "$newfile"